
function Rem()
{
    var docE1=document.documentElement,
        oSize=docE1.clientWidth/6.4;
    if(oSize>100)
    {
        oSize=100;//限制REM的值为100//
    }
     docE1.style.fontSize=oSize+"px";
}
window.addEventListener('resize',Rem,false);
Rem();



